package top.z.orm.core.osql;

/**
 * Bee的SQL异常父类
 */
public class BeeSQLException extends BeeException {

    static final long serialVersionUID = -875516993124222222L;

    private String SQLState;

    private int vendorCode;

    public BeeSQLException() {
        super();
    }

    public BeeSQLException(String message) {
        super(message);
    }

    public BeeSQLException(String message, Throwable cause) {
        super(message, cause);
    }

    public BeeSQLException(Throwable cause) {
        super(cause);
    }

    protected BeeSQLException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public BeeSQLException(String reason, String sqlState, int vendorCode, Throwable cause) {
        super(reason, cause);
        this.SQLState = sqlState;
        this.vendorCode = vendorCode;
    }

    public String getSQLState() {
        return (SQLState);
    }

    public int getErrorCode() {
        return (vendorCode);
    }
}